package com.rogue.feign;

import com.rogue.common.core.utils.ResultDTO;
import com.rogue.domain.entity.HsMember;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author YeahLiang
 * @Create 2022/04/14
 */
@FeignClient("hs-member")
public interface MemberFeign {

    @RequestMapping("/easyUpdateMember")
    ResultDTO<Boolean> easyUpdateMember(@RequestBody HsMember memberDTO);

    @RequestMapping("/easyGetOneMember/{id}")
    ResultDTO<HsMember> easyGetOneMember(@PathVariable("id") Long id);
}
